<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
	<title>顶岗实习管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />

</head>

<body>
		<div style="background:#438eb9">
				<div class="topleft">
	      	<span>顶岗实习管理系统</span>
		    </div>
<!--20160815-->		    
		    <div class="topright">    
			    <ul>
			    <li>${departmentName}</li>
			    <li><a href="admin/syetem.do" target="mainFrame">${userRoleName}</a></li>
			    <li><a href="admin/logout.do" target="_parent">退出</a></li>
			    </ul>
			    <div class="user">
			    <a href="admin/selt.do" target="mainFrame"><span >${userName}(${admin_account})</span></a>
			    </div>    
<!--20160815...-->	    
	    	</div>
			  <div class="clearfix"></div>
		</div>
		<div id="main" style="overflow: auto; ">
			<div id="left" style="background:#f3f9fd; width: 187px; ">
					<div class="lefttop"><span></span>分类导航</div>
					<dl class="leftmenu">
					<dd>
				    <a href="admin/home.do" target="mainFrame"><div class="title"><span><img src="images/zuzhijiegou.png" /></span>管理首页</div></a>
				    	    
				    </dd>	
				      <c:if test="${userRole<=5}">
				    <dd>
				    <div class="title"><span><img src="images/zuzhijiegou.png" /></span>学校组织结构</div>
				    	<ul class="menuson">
				        <li><cite></cite><a href="admin/school.do" target="mainFrame">学校信息</a><i></i></li>
				        <li><cite></cite><a href="department/department_list.do" target="mainFrame">院系信息</a><i></i></li>
				         <li><cite></cite><a href="profession/profession_list.do" target="mainFrame">专业信息</a><i></i></li>
				         <c:if test="${userRole<=3}">
				          <li><cite></cite><a href="classInfo/classInfo_list.do" target="mainFrame">班级信息</a><i></i></li>
				          </c:if>
				        </ul>    
				    </dd>
				    </c:if>
				      <c:if test="${userRole<=3}">
				    <dd>
				    <div class="title">
				    <span><img src="images/renshi.png" /></span>学校用户信息</div>
				    <ul class="menuson">
					    <li><cite></cite><a href="student/studentInfo_list.do" target="mainFrame">学生信息</a><i></i></li>
					    <li><cite></cite><a href="teacher/teacher_list.do" target="mainFrame">教师信息</a><i></i></li>
					    <c:if test="${userRole<=2}">
				        <li><cite></cite><a href="admin/admin_list.do" target="mainFrame">系统管理员</a><i></i></li>
				        </c:if>
				    </ul>     
				    </dd>
				    </c:if>
				      <c:if test="${userRole<=5}">
				    <dd>
				    <div class="title"><span><img src="images/shixidanwei.png" /></span>实习单位管理</div>
				    <ul class="menuson">
					    <li ><cite></cite><a href="jobinfo/jobinfo_list.do" target="mainFrame">实习岗位信息</a><i></i></li>
				        <li><cite></cite><a href="enterpriseinfo/enterpriseinfo_list.do" target="mainFrame">实习单位信息</a><i></i></li>
				         <c:if test="${userRole<=3}">
				        <li><cite></cite><a href="enterpriseuser/enterpriseuser_list.do" target="mainFrame">实习单位教师信息</a><i></i></li>
				        </c:if>
				    </ul>     
				    </dd> 
				    </c:if>
				     <c:if test="${userRole<=5}">
				    <dd>
				    <div class="title"><span><img src="images/shixiguochen.png" /></span>实习过程管理</div>
				    <ul class="menuson">
					    <li ><cite></cite><a href="plan/plan_list.do" target="mainFrame">学生实习计划</a><i></i></li>
				        <li ><cite></cite><a href="jobStudent/jobStudent_list.do" target="mainFrame">学生实习分配</a><i></i></li>
				         <c:if test="${userRole==4}">
				          <li ><cite></cite><a href="jobStudent/th_jobStudent_list.do" target="mainFrame">学生实习管理</a><i></i></li>
				          </c:if>
				        <li ><cite></cite><a href="practiceChange/practiceChange_list.do" target="mainFrame">学生实习变更</a><i></i></li>
				        <li ><cite></cite><a href="question/question_list.do" target="mainFrame">学生实习问题</a><i></i></li>
				        <li ><cite></cite><a href="weeknote/weeknote_list.do" target="mainFrame">学生实习周记</a><i></i></li>
				         <c:if test="${userRole<=3}">
				        <li ><cite></cite><a href="jobStudent/practice_summary_list.do" target="mainFrame">学生实习信息汇总</a><i></i></li>
				        <li ><cite></cite><a href="teacher/practice_teacher_list.do" target="mainFrame">实习教师管理</a><i></i></li>
				        </c:if>
				    </ul>    
				    </dd> 
				    </c:if>
				    	 <c:if test="${userRole<=4}">
				    <dd>
				    <div class="title"><span><img src="images/lunwen.png" /></span>毕业论文管理</div>
				    <ul class="menuson">
					    <li ><cite></cite><a href="thesis/thesis_list.do" target="mainFrame">毕业论文列表</a><i></i></li>
				    </ul>     
				    </dd> 
				  </c:if> 
				   <c:if test="${userRole<=3}">
				    <dd>
				    <div class="title"><span><img src="images/shuju.png" /></span>数据统计</div>
				    <ul class="menuson">
					    <li ><cite></cite><a href="jobStudent/practice_statistics.do" target="mainFrame">实习信息统计</a><i></i></li>
				        <li><cite></cite><a href="question/question_statistics_list.do" target="mainFrame">问题回复统计</a><i></i></li>
				        <li><cite></cite><a href="weeknote/statistics_list.do" target="mainFrame">周记填写批阅统计</a><i></i></li>
				    </ul>     
				    </dd>
				    </c:if>
				    <dd><div class="title"><span><img src="images/zhidu.png" /></span>制度通知</div>
				    <ul class="menuson">
				        <li><cite></cite><a href="news/news_list.do" target="mainFrame">通知公告</a><i></i></li>
				        <li><cite></cite><a href="paper/paper_list.do" target="mainFrame">文档下载</a><i></i></li>
				         <li><cite></cite><a href="notify/notify_list.do" target="mainFrame">站内消息</a><i></i></li>
				    </ul>
				    </dd>
				     <c:if test="${userRole==6}">
				    <dd>
				    <div class="title"><span><img src="images/shixiguochen.png" /></span>我的实习</div>
				    <ul class="menuson">
					    <li ><cite></cite><a href="jobStudent/my_parctice.do" target="mainFrame">实习信息</a><i></i></li>
				        <li ><cite></cite><a href="practiceChange/myPracticeChange_list.do" target="mainFrame">实习变更</a><i></i></li>
				        <li ><cite></cite><a href="question/myQuestion_list.do" target="mainFrame">实习问题</a><i></i></li>
				        <li ><cite></cite><a href="weeknote/myWeeknote_list.do" target="mainFrame">实习周记</a><i></i></li>
				        <li ><cite></cite><a href="jobStudent/my_practicecomment.do" target="mainFrame">实习总结</a><i></i></li>
				        <li ><cite></cite><a  href="practicecomment/practice_report.do?studentNumber=${admin_account }&pdf=0" target="mainFrame">实习报告</a><i></i></li>
				    </ul>    
				    </dd> 
				     <dd>
				    <div class="title"><span><img src="images/lunwen.png" /></span>我的毕业论文</div>
				    <ul class="menuson">
					    <li ><cite></cite><a href="thesis/my_thesis_list.do" target="mainFrame">我的毕业论文</a><i></i></li>
				    </ul>     
				    </dd> 
				    </c:if>
				    
				    </dl>
			</div>
			<div id="main_content"  style="position:absolute; top: 88px; left:187px;">
				<iframe name="mainFrame" id="mainFrame" frameborder="0" src="admin/home.do" style="margin:0 auto;padding:0;width:100%;height:100%;"></iframe>
			</div>
		</div>
		<div class="footer" style="position: fixed; left:0 ; bottom: 0; z-index: 99999; width:100% ;">
               <span></span>
               <i>© 2016 合肥正鼎软件科技有限公司 版权所有</i>    
    </div> 
</body>
<script src="js/jquery-1.7.2.js"></script>
<script src="layer/layer.js"></script>

<script type="text/javascript">
	$(".menuson>li").click(
		function(){
			$(".menuson>li").removeClass("active");
			$(this).addClass("active")
		}	
	);
	$(".title").click(
		function(){
			$(".title").removeClass("title_box");
			$(this).addClass("title_box");
		}	
	);
	
	$(function(){
	 var browser_width = $(document.body).width(); 
	 $("#main_content").css("width",(browser_width-187)+"px");
	 var browser_height = $(document).height();
   $("#left").css("height",(browser_height-119)+"px");
   $("#main_content").css("height",(browser_height-119)+"px");
 });
 
 $(window).resize(function() {
		var browser_width = $(document.body).width(); 
	 $("#main_content").css("width",(browser_width-187)+"px");
	 var browser_height = $(document).height();
   $("#left").css("height",(browser_height-119)+"px");
   $("#main_content").css("height",(browser_height-119)+"px");
	});
$(function(){	
	//导航切换
	$(".menuson").click(function(){
		var $parent = $(this).parent();
		alter($parent);
		$(".menuson>li.active").not($parent).removeClass("active open").find('.sub-menus').hide();
		
		$parent.addClass("active");
		if(!!$(this).next('.sub-menus').size()){
			if($parent.hasClass("open")){
				$parent.removeClass("open").find('.sub-menus').hide();
			}else{
				$parent.addClass("open").find('.sub-menus').show();	
			}
			
			
		}
	});
	
	// 三级菜单点击
	$('.sub-menus li').click(function(e) {
        $(".sub-menus li.active").removeClass("active")
		$(this).addClass("active");
    });
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('.menuson').slideUp();
		if($ul.is(':visible')){
			$(this).next('.menuson').slideUp();
		}else{
			$(this).next('.menuson').slideDown();
		}
	});
});
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>

</html>
